import request from './request'
export default {
  sysLogin(data){
    return request({
      url:'/login/web',
      method:'post',
      data:data
    })
  },
  Logout(){
    return request({
      url:'/login/logout',
      method:'get'
    })
  },
  checkToken(){
    return request({
      url:'/login/isExpired',
      method:'get'
    })
  },
  getQyList(data){
    return request({
      url:'/qiye/list',
      method:'get'
    })
  },
  searchQy(data){
    return request({
      url:'/qiye/getpage',
      method:'post',
      data:data
    })
  },
  drawFloatText(data){
    return request({
      url:'/map_3d_text_float/add',
      method:'post',
      data:data
    })
  },
  getFloatText(id){
    return request({
      url:`/map_3d_text_float/${id}`,
      method:'get'
    })
  },
  getFloatTextList(){
    return request({
      url:'/map_3d_text_float/getlist',
      method:'post'
    })
  },
  delFloatText(id){
    return request({
      url:`/map_3d_text_float/delete/${id}`,
      method:'get'
    })
  },
  updateFloatText(data){
    return request({
      url:'/map_3d_text_float/update',
      method:'post',
      data:data
    })
  }
}
